//
//  ZCSingerAlbumCollectionViewCell.m
//  VoiceMusic
//
//  Created by dllo on 15/10/24.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCSingerAlbumCollectionViewCell.h"
#import <Masonry.h>
#import <UIImageView+WebCache.h>
@implementation ZCSingerAlbumCollectionViewCell
-(void)layoutSubviews
{
    [super layoutSubviews];
    [self.picImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.left.equalTo(self.contentView).offset(0);
        make.height.equalTo(@130);
    }];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.picImageView.mas_bottom).offset(0);
        make.left.right.equalTo(self.contentView).offset(0);
        make.height.equalTo(@30);
    }];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)getInfo:(ZCSingerAlbumModel *)model
{
    [self.titleLabel setText:model.name];
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.picUrl] placeholderImage:[UIImage imageNamed:@"333"]];
}
@end
